The default list element has a header, footer and detail section.
默认的列表元素有一个头,一个尾和细节部分。
The onSelect function is executed when the user selects a list element.
当用户选取列表元素后执行 onSelect 函数。
The extra list element is actually added in line two of the append_options method.
额外的 list 元素实际上添加到 append_options 方法的第二行。
I look at the rest of the list to decide what's the element to swap into the next place.
我会查看列表剩下的部分,来看看需要交换哪个元素。
And if I'm walking down the list, this is probably order of the length of the list s because I'm looking at each element once.
这可能大概就是数组的长度,因为我会遍历数组中的每个元素一次,现在你可能会想,等等,数组已经排好序了。
So wherever the largest element started out in the list, by the time I get through it, it's at the end.
所以无论最大的元素,在列表的什么位置。
应用推荐